package com.whnk.model.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.whnk.model.mapper.SrcTIndexInfoMapper;
import com.whnk.model.domain.SrcTIndexInfo;
import com.whnk.model.service.ISrcTIndexInfoService;

/**
 * 指标数据源Service业务层处理
 * 
 * @author whnk
 * @date 2021-11-25
 */
@Service
public class SrcTIndexInfoServiceImpl implements ISrcTIndexInfoService 
{
    @Autowired
    private SrcTIndexInfoMapper srcTIndexInfoMapper;

    /**
     * 查询指标数据源
     * 
     * @param id 指标数据源主键
     * @return 指标数据源
     */
    @Override
    public SrcTIndexInfo selectSrcTIndexInfoById(Long id)
    {
        return srcTIndexInfoMapper.selectSrcTIndexInfoById(id);
    }

    /**
     * 查询指标数据源列表
     * 
     * @param srcTIndexInfo 指标数据源
     * @return 指标数据源
     */
    @Override
    public List<SrcTIndexInfo> selectSrcTIndexInfoList(SrcTIndexInfo srcTIndexInfo)
    {
        return srcTIndexInfoMapper.selectSrcTIndexInfoList(srcTIndexInfo);
    }

    /**
     * 新增指标数据源
     * 
     * @param srcTIndexInfo 指标数据源
     * @return 结果
     */
    @Override
    public int insertSrcTIndexInfo(SrcTIndexInfo srcTIndexInfo)
    {
        return srcTIndexInfoMapper.insertSrcTIndexInfo(srcTIndexInfo);
    }

    /**
     * 修改指标数据源
     * 
     * @param srcTIndexInfo 指标数据源
     * @return 结果
     */
    @Override
    public int updateSrcTIndexInfo(SrcTIndexInfo srcTIndexInfo)
    {
        return srcTIndexInfoMapper.updateSrcTIndexInfo(srcTIndexInfo);
    }

    /**
     * 批量删除指标数据源
     * 
     * @param ids 需要删除的指标数据源主键
     * @return 结果
     */
    @Override
    public int deleteSrcTIndexInfoByIds(Long[] ids)
    {
        return srcTIndexInfoMapper.deleteSrcTIndexInfoByIds(ids);
    }

    /**
     * 删除指标数据源信息
     * 
     * @param id 指标数据源主键
     * @return 结果
     */
    @Override
    public int deleteSrcTIndexInfoById(Long id)
    {
        return srcTIndexInfoMapper.deleteSrcTIndexInfoById(id);
    }
}
